﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
    CodeBehind="wfrTipoCategoriaHabitacion.aspx.cs" Inherits="EvolSoftWeb.wfrTipoCategoriaHabitacion" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%">
        <div class="main-titulo">
            Registro Tipos Categoria-Habitación-Tarificación</div>
    </div>
    <asp:UpdatePanel runat="server">
    <ContentTemplate>
    
    <div class="content-form">
        <br />
        <dx:aspxpagecontrol id="ASPxPageControl1" runat="server" activetabindex="1">
            <TabPages>
            <dx:TabPage Text="Categoria">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    
                        <fieldset>
                        <table>
                        <tr>
                        <td>
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Grabar" Width="100px">
                            </dx:ASPxButton>
                        </td><td>
                                &nbsp;</td>
                        <td>
                            <dx:ASPxButton ID="btnModificaCat" runat="server" Text="Grabar" Width="100px">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="bntEliminarCat" runat="server" Text="Grabar" Width="100px">
                            </dx:ASPxButton>
                            </td>
                        <td>
                            <dx:ASPxButton ID="bntLimpiarCat" runat="server" Text="Limpiar" Width="100px">
                            </dx:ASPxButton>
                            </td>

                        <td>
                            <dx:ASPxButton ID="btnSalirCat" runat="server" Text="Salir" Width="100px">
                            </dx:ASPxButton>
                            </td><td></td>
                        </tr>
                        
                        
                        </table>

                        </fieldset>
                        <table>
    <tr>
    <td>
        Id Categoria:</td>
   <td>
       <dx:ASPxTextBox ID="txtIdCategoria" runat="server" Width="200px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
        </td>
    </tr>
       <tr>
    <td>
        Nombre:</td>
   <td>
       <dx:ASPxTextBox ID="txtNombreCat" runat="server" Width="200px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
           </td>
    </tr>
       <tr>
    <td>
        Detalle:</td>
   <td>
       <dx:ASPxTextBox ID="txtDetalleCat" runat="server" Width="300px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
           </td>
    </tr>
       <tr>
    <td>
    </td>
   <td></td>
    </tr>
       <tr>
    <td colspan="2">
        <dx:ASPxGridView ID="grdCategoria" runat="server" AutoGenerateColumns="False" width="500px">
            <Columns>
                <dx:GridViewDataTextColumn FieldName="idCategoria" 
                    ShowInCustomizationForm="True" VisibleIndex="0">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="nombre" ShowInCustomizationForm="True" 
                    VisibleIndex="1">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
            </Columns>

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
        </dx:ASPxGridView>
    </td>
    </tr>
    </table>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Text="Habitación">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">

                        <fieldset>
                        <table>
                        <tr>
                        <td>
                            <dx:ASPxButton ID="btnGrabarHab" runat="server" Text="Grabar" Width="100px">
                            </dx:ASPxButton>
                        </td><td>
                                <dx:ASPxButton ID="btnGrabarHab0" runat="server" Text="Modificar" Width="100px">
                                </dx:ASPxButton>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <dx:ASPxButton ID="btnGrabarHab1" runat="server" Text="Eliminar" Width="100px">
                            </dx:ASPxButton>
                            </td>
                        <td>
                            <dx:ASPxButton ID="btnlimpiarC" runat="server" Text="Limpiar" Width="100px">
                            </dx:ASPxButton>
                            </td>

                        <td>
                            <dx:ASPxButton ID="btnSalirC" runat="server" Text="Salir" Width="100px">
                            </dx:ASPxButton>
                            </td><td></td>
                        </tr>
                        
                        
                        </table>

                        </fieldset>
                        <table>
    <tr>
    <td>
        Id Habitación:</td>
   <td>
       <dx:ASPxTextBox ID="txtIDHabit" runat="server" Width="200px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
        </td>
    </tr>
       <tr>
    <td>
        Nombre:</td>
   <td>
       <dx:ASPxTextBox ID="txtNombreHab" runat="server" Width="200px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
           </td>
    </tr>
       <tr>
    <td>
        Detalle:</td>
   <td>
       <dx:ASPxTextBox ID="txtDetalleHab" runat="server" Width="300px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
           </td>
    </tr>
       <tr>
    <td>
    </td>
   <td></td>
    </tr>
       <tr>
   <td colspan="2">
       <dx:ASPxGridView ID="grdHabitacion" runat="server" AutoGenerateColumns="False" 
           width="500px" EnableCallBacks="False">
           <Columns>
               <dx:GridViewDataTextColumn FieldName="idtipoHabitacion" 
                   ShowInCustomizationForm="True" VisibleIndex="0">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn FieldName="nombre" ShowInCustomizationForm="True" 
                   VisibleIndex="1">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn FieldName="detalle" ShowInCustomizationForm="True" 
                   VisibleIndex="2">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
           </Columns>

           <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
               ProcessFocusedRowChangedOnServer="True" />
           <SettingsPager PageSize="100" Visible="False">
           </SettingsPager>

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
       </dx:ASPxGridView>
           </td>
    </tr>
    </table>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Text="Tarificación" Visible="False">
                    <ContentCollection>
                        <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">

                        <fieldset>
                        <table>
                        <tr>
                        <td>
                            <dx:ASPxButton ID="btnGrabarTar" runat="server" Text="Grabar" Width="100px" 
                                OnClick="btnGrabarTar_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnModificarTar" runat="server" Text="Modificar" 
                                Width="100px" OnClick="btnModificarTar_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnEliminarTar" runat="server" Text="Eliminar" Width="100px" 
                                OnClick="btnEliminarTar_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnLimpiarTarif" runat="server" Text="Limpiar" Width="100px" 
                                OnClick="btnLimpiarTarif_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnSalirTari" runat="server" Text="Salir" Width="100px" 
                                OnClick="btnSalirTari_Click">
                            </dx:ASPxButton>
                        </td>
                        <td></td>
                        <td></td>

                        <td></td><td></td>
                        </tr>
                        
                        
                        </table>

                        </fieldset>
                        <table>
    <tr>
    <td>
        Id Tarificación:</td>
   <td>
       <dx:ASPxTextBox ID="txtIdTarific" runat="server" Width="200px" 
           ClientEnabled="False">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
        </td>
    </tr>
       <tr>
    <td>
        Nombre:</td>
   <td>
       <dx:ASPxTextBox ID="txtNomTipoTarif" runat="server" Width="200px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
       </dx:ASPxTextBox>
           </td>
    </tr>
       <tr>
    <td>
    </td>
   <td></td>
    </tr>
       <tr>
    <td colspan="2">
        <dx:ASPxGridView ID="grdTipoTarif" runat="server" AutoGenerateColumns="False" 
            Width="500px" OnFocusedRowChanged="grdTipoTarif_FocusedRowChanged" 
            EnableCallBacks="False" KeyFieldName="idTarifacion">
            <Columns>
                <dx:GridViewDataTextColumn FieldName="idTarifacion" 
                    ShowInCustomizationForm="True" VisibleIndex="0">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="nombre" ShowInCustomizationForm="True" 
                    VisibleIndex="1">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
            </Columns>
            <settingsbehavior processfocusedrowchangedonserver="True" 
                AllowFocusedRow="True" />
            <settingspager pagesize="100" visible="False">
            </settingspager>
            <settings showverticalscrollbar="True" />

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
        </dx:ASPxGridView>
    </td>
    </tr>
    </table>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
            </TabPages>
        </dx:aspxpagecontrol>
        <br />
        <br />
        <dx:aspxpopupcontrol id="popupOK" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupOK" closeaction="CloseButton" enablehottrack="False"
            headertext="Mensaje" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center">
<tr>
<td></td>
<td>
    <dx:ASPxLabel ID="lblmsgOK" runat="server">
    </dx:ASPxLabel>
    </td>
<td></td>
</tr>
    <tr>
        <td colspan="3">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
            <dx:ASPxButton ID="btnAceptarOK" runat="server" Text="Aceptar" 
                AutoPostBack="False">
                <clientsideevents click="function(s, e) {
	popupOK.Hide();
}" />
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <br />
        <dx:aspxpopupcontrol id="popupConfirmacion" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmacion" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfirmar" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmar" runat="server" Text="Aceptar" 
                OnClick="btnConfirmar_Click">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
		popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <br />
        <dx:aspxpopupcontrol id="popupConfirmarCateg" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmarCateg" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfCateg" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmarCat" runat="server" Text="Aceptar">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
popupConfirmarCateg.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar0" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popupConfirmarCateg.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <br />
        <dx:aspxpopupcontrol id="popupConfirmarHabit" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmarHabit" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfirmarHabit" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmarHabit" runat="server" Text="Aceptar">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
popupConfirmarHabit.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar1" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
		popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <br />
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>

    
</asp:Content>
